#include<stdio.h>
int main()
{
  int a,b;
  scanf("%d%d",&a,&b);
  int r = a+b;
  a = r-a;
  b = r-a;
  printf("%d %d\n",a,b);
  return 0;
}
